<?php
/*
 * @Author: 李明
 * @Date: 2021-10-26 15:08:50
 * @LastEditTime: 2021-11-30 18:06:08
 * @LastEditors: 李明
 * @Description: 
 * @FilePath: /CRM2.0-PHP/app/Models/OrderOpinion.php
 * @山东壹零贰肆信息科技有限公司
 */

/**
 * Created by Reliese Model.
 */

namespace App\Models;

use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;

/**
 * Class OrderOpinion
 * 
 * @property int $id
 * @property int $order_id
 * @property string|null $refuse_reason
 * @property string|null $audit_opinion
 * @property string|null $remark
 * @property Carbon|null $create_time
 * @property Carbon|null $update_time
 * 
 * @property Order $order
 *
 * @package App\Models
 */
class OrderOpinion extends Model
{
    protected $table = 'order_opinion';

    protected $casts = [
        'order_id' => 'int'
    ];

    protected $fillable = [
        'order_id',
        'refuse_reason',
        'audit_opinion',
        'remark'
    ];

    public function order()
    {
        return $this->belongsTo(Order::class);
    }
}
